AWS Certified SAP on AWS – Specialty (PAS-C01) — Question 48
An SAP technology consultant needs to scale up a primary application server (PAS) instance. The PAS currently runs on a c5a.xlarge Amazon EC2 instance. The SAP technology consultant needs to change the instance type to c5a.2xlarge.
How can the SAP technology consultant meet this requirement?
Answer options
- A. Stop the complete SAP system. Stop the EC2 instance. Use the AWS Management Console or the AWS CLI to change the instance type. Start the EC2 instance. Start the complete SAP system.
- B. While SAP is running, use the AWS Management Console or the AWS CLI to change the instance type without stopping the EC2 instance.
- C. Stop the complete SAP system. Terminate the EC2 instance. Use the AWS Management Console or the AWS CLI to change the instance type. Start the EC2 instance. Start the complete SAP system.
- D. While SAP is running, log in to the EC2 instance. Run the following AWS CLI command: aws ec2 modify-instance-attribute --instance-id <INSTANCEID> --instance-type "{\"Value\": \"c5a.2xlargel\"}".
Correct answer: A
Explanation
The correct answer is A because changing the instance type requires stopping the EC2 instance. Option B is incorrect as you cannot change the instance type while the instance is running. Option C is wrong because terminating the EC2 instance is unnecessary; it should only be stopped. Option D is incorrect as it suggests modifying the instance type while the system is running, which is not allowed.