AWS Developer 4 - Creating a Virtual Machine Using Amazon EC2 Flashcards
- You have launched an EBS-backed EC2 instance in the us-west-2a region. To save on costs, you have stopped the instance and then tried to start it back in 35 days, but you are getting the “Insufficient Instance Capacity” error. What could be the reason for the error?
A. AWS does not have sufficient on-demand capacity in that availability zone to service your request.
B. AWS availability zone mapping is changed for your user account
C. There is an issue with the host machine capacity on which the instance is launched.
D. Your AWS account has reached the maximum EC2 instance limit.
A. If you get an “Insufficient Instance Capacity” error when you try to launch an instance or try to restart an instance, or restart a stopped instance, it’s because AWS does not currently have enough availability-on-demand to service your request.
- You are trying to connect a running EC2 instance using SSD and are getting an “Unprotected Private Key File” error. Which of the following options can be a possible reason?
A. Your private key file has the wrong file permission.
B. The .ppk file used for SSH has read-only permission.
C. The public key file has insufficient permission.
D. the username that you have provided is incorrect.
A. Your private key file has the wrong permission.
You need to set the permission on the .ssh folder to 700, and the permission on the private key file to 600. And you need to set the permission on the private key file to 644.
- You have launched an EC2 instance, but it was terminated. Is it possible to find the reason for termination, and if so, where can you find the details?
A. It is not possible to find the details after the instance is terminated.
B. You can get the information by checking the instance description under the State Transition Reason label from the AWS console.
C. You can get the information by checking the instance description under the Status Change Reason label from the AWS console.
D. You can get the information by checking the instance description under the Instance Change Reason label from the AWS console
B. You can get the information by checking the instance description under the State Transition Reason label from the AWS console.
- A user is trying to connect to a running eC2 instance using SSH, but the user gets a connection timeout error. Which is not a possible reason for rejection?
A. You are connecting with the appropriate username for your instance AMI.
B. The security group is not configured properly to allow SSH.
C. The private key used to connect to the instance is not correct.
D. Your network ACL rules do not allow any inbound and outbound traffic
A. You are connecting with the appropriate username for your instance AMI.
For Amazon Linux AMI, the user-name is ec2-user.
For an Ubuntu AMI, the username is ubuntu.
- You are launching an EC2 instance in the US West region. Which option is recommended by AWS when selecting the availability zone?
A. Always select us-west-1a availability zone for high availability.
B. Do not select the availability zone; instead, let AWS choose it.
C. You cannot select the availability zone when launching an instance.
D. Always choose multiple availability zones when launching an instance.
B. Do not select the availability zone; instead, let AWS choose it.
- What are the two types of virtualization that Linux AMIs take advantage of? (Choose two)
A. Amazon EC2 placement group.
B. Amazon PV AMI
C. Amazon HVM AMI
D. Amazon VPC
B, C. Amazon PV AMI, and Amazon HVM AMI
- Which of the following statements about Amazon Instance store is correct?
A. Instance store volume data persists only for the duration of the associated EC2 instance.
B. When you update the security group rule, the data on the associated instance store volume will be lost.
C. Even after the associated Amazon EC2 instance is terminated, the data on an instance store volume persisted until you manually delete it.
D. the instance store volume is recommended for the root volume of critical instances.
A. The data of the instance volume persists only for the duration of the associated EC2 instance.
- You have launched an EC2 instance from an instance store-backed AMI and attached an additional instance store volume to it. Now you want to create an AMI from the running instance. Where will the additional instance store volume data be located?
A. The additional instance store volume information will be on the block device mapping.
B. Only the root volume bundled on the instance uses instance store-backed AMIs.
C. It is not possible to add an instance store volume to the existing instance store.
D. It will not be a part of the AMI, because this is ephemeral storage.
A. The additional instance store volume information will be on the block device mapping
- A user is using an EBS-backed instance. Which statement is true?
A. Only when the instance is running will the user be charged for the volume and instance.
B. The user will be charged for the volume even if the instance is stopped.
C. Only the cost of the running instance will be charged to the user.
D. The user will not be charged for the volume if the instance is stopped.
B. As long as there are attached EBS volumes to the EC2 instance, the user will be charged even if the instance is stopped.
- Status monitoring helps to determine quickly any problems that might prevent instances from running applications. EC2 automatically performs checks on every running EC2 instance to identify any hardware or software issues. Which of the following are true? (Choose two.)
A. Status checks are performed every minute, and each returns a pass or a fail status.
B. If all checks pass, the overall status of the instance is ok.
C. If one or more checks fail, the overall status is impaired.
D. Status checks cannot be disabled or deleted because they are built into EC2.
B, C. If all checks pass, the overall status of the instance is ok, and if one or more of the checks fail, the overall status is impaired.