Amazon

SOA-C03 Free Practice Questions — Page 10

Question 41

A company uses default settings to create an AWS Lambda function. The function needs to access an Amazon RDS database that is in a private subnet of a VPC. The function has the correct IAM permissions to access the database. The private subnet has appropriate routing configurations and is accessible from within the VPC. However, the Lambda function is unable to connect to the RDS instance. What is the likely reason the Lambda function cannot connect to the RDS instance?

A. The company did not set the RDS instance as the destination for the Lambda function in the function configuration.
B. The Lambda function configuration did not deploy the function in the same VPC that contains the RDS instance.
C. The VPC where the Lambda function is deployed is not peered with the VPC where the RDS instance is deployed.
D. The security group for the Lambda function does not allow outbound access to the RDS instance.
Show Answer
Correct Answer: B
Explanation:
By default, AWS Lambda functions are not attached to a customer's VPC. An Amazon RDS instance in a private subnet is reachable only through network connectivity within that VPC (or connected networks). IAM permissions alone do not provide network access. The Lambda function must be configured to run in the appropriate VPC and subnets with suitable security groups. Option A is not an AWS configuration concept, C is unnecessary if both resources are intended to be in the same VPC, and D is unlikely with default security groups because outbound is typically allowed by default.

Question 41

A company has created an AWS Site-to-Site VPN connection with logging enabled between the company's VPC and an on-premises data center. The company's finance team has begun to experience intermittent connectivity issues when the team tries to access an application that runs in the VPC from the data center. The company needs to implement an automated monitoring solution to receive immediate notifications when a VPN tunnel becomes unavailable. Which combination of steps will meet this requirement? (Choose two.)

A. Use Amazon CloudWatch Logs to collect and store VPN collection logs. Convert the logs into readable metrics. Create a metric filter to filter the logs for VPN tunnel metrics.
B. Use AWS CloudTrail to collect VPN logs. Store the logs in an Amazon S3 bucket. Use Amazon Athena to query the data to find site-to-site VPN tunnel connection errors. Store the error files in a second S3 bucket.
C. Use VPN tunnel metrics to create an Amazon CloudWatch alarm. Use Amazon SNS to send a notification when a VPN tunnel state changes.
D. Use Amazon EventBridge rules to invoke an AWS Lambda function. Configure the Lambda function to use Amazon SNS to send a notification when a VPN tunnel connection error is detected.
E. Use AWS Systems Manager to manage the VPN tunnels and to monitor VPN tunnels for any connection errors.
Show Answer
Correct Answer: A, C
Explanation:
VPN connection logs can be sent to CloudWatch Logs, where metric filters can extract relevant tunnel events as metrics. CloudWatch alarms on VPN tunnel metrics—such as TunnelState—can then publish immediate notifications through Amazon SNS when a tunnel becomes unavailable.

Question 42

A company has an Amazon S3 bucket that has server-side encryption with AWS KMS keys (SSE-KMS) enabled. Several applications read from the S3 bucket for daily reporting. The company clears the data in the S3 bucket weekly when the company moves the data into a data warehouse. As more applications read from the S3 bucket, the cost of KMS-related transactions is increasing. A CloudOps engineer needs to reduce the KMS costs without removing S3 encryption and without losing access to existing objects. Which solution will meet these requirements with the LEAST operational overhead?

A. Enable S3 Bucket Keys on the S3 bucket. Specify the existing KMS key.
B. Change the encryption type on the S3 bucket to server-side encryption with customer-provided keys (SSE-C).
C. Use Amazon CloudFront to cache the objects in the S3 bucket and to serve the objects to the applications.
D. Configure the applications to connect to the S3 bucket through an S3 access point.
Show Answer
Correct Answer: A
Explanation:
Amazon S3 Bucket Keys reduce AWS KMS request traffic for SSE-KMS objects by using a bucket-level key cached by S3, significantly lowering KMS costs while retaining SSE-KMS encryption. Existing objects remain accessible, and enabling Bucket Keys requires minimal operational effort. SSE-C changes the encryption model and key management, CloudFront does not address KMS request costs for S3 encryption in this scenario, and S3 Access Points only simplify access management.

Question 42

A company must receive an email notification immediately when new Amazon EC2 instances launch in the company's main AWS production account. Which solution will meet this requirement?

A. Create a user data script that sends an email message through an SMTP mail relay. Include the company's email address in the user data script as the recipient. Ensure that all new EC2 instances include the user data script as part of a standardized build process.
B. Create an Amazon SNS topic. Configure AWS Systems Manager to publish EC2 events to the SNS topic. Create an AWS Lambda function to poll the SNS topic. Configure the Lambda function to send messages to the company's email address.
C. Create an Amazon SNS topic and a subscription that uses the email protocol. Enter the company's email address as the subscriber. Create an Amazon EventBridge rule that reacts when EC2 instances launch. Specify the SNS topic as the rule's target.
D. Create an Amazon SNS topic and a subscription that uses the email protocol. Enter the company's email address as the subscriber. Use the EC2 AssociateInstanceEventWindow operation to specify the SNS topic as the event target when EC2 instances launch.
Show Answer
Correct Answer: C
Explanation:
Create an EventBridge rule that matches EC2 launch events and sends them to an SNS topic with an email subscription. This directly routes the event to the company’s email address; the recipient must confirm the SNS subscription. The other options either rely on instance-specific setup, add unnecessary polling, or use an operation that is not for configuring launch-event notifications.

Question 43

A company plans to deploy a database on an Amazon Aurora MySQL DB cluster. The database will store data for a demonstration environment. The data must be reset on a daily basis. What is the MOST operationally efficient solution that meets these requirements?

A. Create a manual snapshot of the DB cluster after the data has been populated. Create an Amazon EventBridge rule to invoke an AWS Lambda function on a daily basis. Configure the function to restore the snapshot and then delete the previous DB cluster.
B. Enable the Backtrack feature during the creation of the DB cluster. Specify a target backtrack window of 48 hours. Create an Amazon EventBridge rule to invoke an AWS Lambda function on a daily basis. Configure the function to perform a backtrack operation.
C. Export a manual snapshot of the DB cluster to an Amazon S3 bucket after the data has been populated. Create an Amazon EventBridge rule to invoke an AWS Lambda function on a daily basis. Configure the function to restore the snapshot from Amazon S3.
D. Set the DB cluster backup retention period to 2 days. Create an Amazon EventBridge rule to invoke an AWS Lambda function on a daily basis. Configure the function to restore the DB cluster to a point in time and then delete the previous DB cluster.
Show Answer
Correct Answer: B
Explanation:
Amazon Aurora Backtrack is designed to quickly rewind an Aurora MySQL cluster to an earlier point in time without restoring from snapshots. For a demo environment that must be reset daily, enabling Backtrack and scheduling a daily backtrack operation is the most operationally efficient approach. Restoring snapshots or performing point-in-time restores creates new clusters and requires more operational overhead. Exporting snapshots to S3 cannot be restored directly into Aurora.

Question 43

A CloudOps engineer has an AWS CloudFormation template that deploys an encrypted Amazon Machine Image (AMI). The AMI is encrypted with an AWS KMS asymmetric key. The CloudFormation template needs to be used in a second account. The CloudOps engineer copies the encrypted AMI to the second account. The new CloudFormation stack in the second account fails to launch. Which action should the CloudOps engineer take to resolve this issue?

A. Update the CloudFormation template with the ID of the AMI in the second account. In the KMS key policy, allow the second account to access the KMS key.
B. Convert the KMS key to a symmetric key. Copy the AMI to the second account. Deregister the AMI in the initial account. Register the AMI in the second account.
C. Export the KMS key from the initial account. Import the KMS key into the second account. Update the CloudFormation template with the KMS key's new Amazon Resource Name (ARN).
D. Export the KMS key from the initial account. Change the AMI permissions to mark the AMI as public. Import the KMS key into the second account.
Show Answer
Correct Answer: A
Explanation:
The copied AMI has a different AMI ID, so the template must reference that ID. Cross-account access to the encryption key must also be allowed in the key policy. Note: literally, EBS-backed AMIs can be encrypted only with symmetric KMS keys—not asymmetric keys—so the question’s premise is technically inconsistent; A is the intended answer if “asymmetric” is a wording error.

Question 44

A CloudOps engineer must troubleshoot performance issues for a web application that is delivered through Amazon CloudFront. The metrics show a consistently low cache hit ratio that leads to many requests being forwarded to the origin. Which configuration will increase the cache hit ratio?

A. Modify the origin's Cache-Control header to max-age=0.
B. Reduce the TTL for cached objects.
C. Reduce the number of request headers, query strings, and cookies included in the cache key.
D. Configure signed URLs or signed cookies to restrict access to content.
Show Answer
Correct Answer: C
Explanation:
A low CloudFront cache hit ratio is commonly caused by an overly specific cache key. Including unnecessary request headers, query strings, or cookies creates many unique cache entries and reduces cache reuse. Reducing these cache key components increases the likelihood that requests match cached objects. Option A (max-age=0) effectively disables caching, B reduces cache lifetime and generally lowers hit ratio, and D controls access rather than improving cache efficiency.

Question 44

A development team is building an application that will use an Amazon API Gateway REST API and AWS Lambda functions to receive and process requests. The Lambda functions will deliver messages to an Amazon SNS topic. External stakeholders subscribe to the SNS topic. The company wants to prevent sensitive data from being published to the SNS topic. Which solution will meet these requirements?

A. Associate a data protection policy with the SNS topic. Define policy statements that identify and protect the sensitive data.
B. Run a sensitive data discovery job in Amazon Macie. Define the scope to identify and redact sensitive information within the workflow before publishing messages to the SNS topic.
C. Deploy Amazon GuardDuty Lambda Protection. Define sensitive data patterns that generate specific finding types when the patterns are matched. Send notifications to the development team.
D. Use Amazon Inspector to scan the Lambda function code for sensitive information. Activate an alert when Amazon Inspector finds sensitive information.
Show Answer
Correct Answer: A
Explanation:
Amazon SNS data protection policies can inspect messages for specified sensitive data and audit, mask, or block publishing based on policy statements. This helps prevent sensitive information from reaching the topic and its external subscribers. Macie, GuardDuty, and Inspector do not provide this message-level protection for SNS publishing.

Question 45

A company uses an organization in AWS Organizations to manage a multi-account AWS environment. The company creates a new Amazon EBS backed Amazon Machine Image (AMI). The company shares the AMI across the organization. Employees must use the AMI to launch all new Linux-based Amazon EC2 instances across the entire organization. In one of the company's application accounts, an employee uses the new AMI to launch a new workload. The EC2 instance launches, but it is terminated immediately. What the MOST likely reason that the instance did not fully boot?

A. The user who launched the instance does not have ec2:RunInstances permissions within the application account.
B. The company encrypted the AMI by using an AWS KMS key that the user who launched the EC2 instance does not have access to.
C. There is a service control policy (SCP) that denies the user who launched the EC2 instance access to launch instances in the application account.
D. The user launched the EC2 instance into a subnet that does not have access to the internet.
Show Answer
Correct Answer: B
Explanation:
An EC2 instance that launches and then immediately transitions to the terminated state commonly indicates a launch-time failure rather than a networking issue. If the AMI is EBS-backed and encrypted with a customer-managed AWS KMS key, the launching principal and EC2 service must be able to use that KMS key to create and decrypt the EBS volumes. Without the necessary KMS permissions, the root volume cannot be created/decrypted, so the instance cannot boot and is terminated. The other options would typically prevent the launch request entirely (missing RunInstances permission or an SCP deny) or would not cause immediate termination (no internet access).

Question 45

A company needs to view a list of security groups that are open to the internet on port 3389. What should a CloudOps engineer do to meet this requirement?

A. Configure Amazon GuardDuty to scan security groups and report unrestricted access on port 3389.
B. Configure a service control policy (SCP) to identify security groups that allow unrestricted access on port 3389.
C. Use AWS Identity and Access Management Access Analyzer to find any instances that have unrestricted access on port 3389.
D. Use AWS Trusted Advisor to find security groups that allow unrestricted access on port 3389.
Show Answer
Correct Answer: D
Explanation:
AWS Trusted Advisor checks security groups for unrestricted access to commonly used ports, including RDP on port 3389, and can report the groups that are exposed to the internet.

$19

Get all 197 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.