PracticeCF

SAP-C02 Question Bank · Latest 50 Questions Free Preview (Page 4/5)

Questions 31–40 of the latest 50 SAP-C02 questions (5 pages total), with answers and explanations, no login required. Practice all 1519 questions online.

Question 31 · No. 1503 · Single choice

A company is changing the way that it handles patching of Amazon EC2 instances in its application account. The company currently patches instances over the internet by using a NAT gateway in a VPC in the application account. The company has EC2 instances set up as a patch source repository in a dedicated private VPC in a core account. The company wants to use AWS Systems Manager Patch Manager and the patch source repository in the core account to patch the EC2 instances in the application account. The company must prevent all EC2 instances in the application account from accessing the internet. The EC2 instances in the application account need to access Amazon S3, where the application data is stored. These EC2 instances need connectivity to Systems Manager and to the patch source repository in the private VPC in the core account. Which solution will meet these requirements?

Answer: C

Explanation: Solution C is the best fit because it addresses all requirements without compromising connectivity or security. It creates VPC endpoints for Systems Manager and Amazon S3, which allows instances in the application account to access these services without going through the internet. Deleting the NAT gateway helps isolate the application account from internet access. A VPC peering connection is established to securely access the patch source repository EC2 instances in the core account, and updating route tables ensures proper routing.
Question 32 · No. 1504 · Single choice

A company plans to migrate a legacy on-premises application to AWS. The application is a Java web application that runs on Apache Tomcat with a PostgreSQL database. The company does not have access to the source code but can deploy the application Java Archive (JAR) files. The application has increased traffic at the end of each month. Which solution will meet these requirements with the LEAST operational overhead?

Answer: D

Explanation: Option D is the best solution with the least operational overhead because AWS Elastic Beanstalk simplifies the deployment and management of the Java web application by automatically handling capacity provisioning, load balancing, and auto-scaling. It also integrates seamlessly with Amazon RDS for PostgreSQL, reducing the need for manual database setup and maintenance. Deploying CloudFront adds a global content delivery network that can efficiently handle increased traffic at the end of each month, while the Application Load Balancer manages the distribution of this traffic across the environment. This setup requires minimal operational intervention compared to the other options.
Question 33 · No. 1505 · Single choice

A company hosts an application that uses several Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). During the initial startup of the EC2 instances, the EC2 instances run user data scripts to download critical content for the application from an Amazon S3 bucket. The EC2 instances are launching correctly. However, after a period of time, the EC2 instances are terminated with the following error message: “An instance was taken out of service in response to an ELB system health check failure.” EC2 instances continue to launch and be terminated because of Auto Scaling events in an endless loop. The only recent change to the deployment is that the company added a large amount of critical content to the S3 bucket. The company does not want to alter the user data scripts in production. What should a solutions architect do so that the production environment can deploy successfully?

Answer: D

Explanation: The issue arises because the EC2 instances are being terminated due to health check failures after a period of time, indicating that they are not ready to serve traffic when the load balancer checks their status. Increasing the health check grace period for the Auto Scaling group would give the instances more time to complete their startup routines, including running user data scripts and downloading content from the S3 bucket, before the health checks start. This approach does not require altering the user data scripts and directly addresses the problem of instances being terminated prematurely.
Question 34 · No. 1506 · Single choice

A company has an application that uses AWS Key Management Service (AWS KMS) to encrypt and decrypt data. The application stores data in an Amazon S3 bucket in an AWS Region. Company security policies require the data to be encrypted before the data is placed into the S3 bucket. The application must decrypt the data when the application reads files from the S3 bucket. The company replicates the S3 bucket to other Regions. A solutions architect must design a solution so that the application can encrypt and decrypt data across Regions. The application must use the same key to decrypt the data in each Region. Which solution will meet these requirements?

Answer: A

Explanation: The best solution to meet the requirements is to create a KMS multi-Region primary key, which can be replicated automatically to other Regions as replica keys, ensuring the application can use the same key for decryption across all Regions without needing code updates for different keys in each Region.
Question 35 · No. 1507 · Single choice

A global ecommerce company has many data centers around the world. With the growth of its stored data, the company needs to set up a solution to provide scalable storage for legacy on-premises file applications. The company must be able to take point-in-time copies of volumes by using AWS Backup and must retain low-latency access to frequently accessed data. The company also needs to have storage volumes that can be mounted as Internet Small Computer System Interface (iSCSI) devices from the company’s on-premises application servers. Which solution will meet these requirements?

Answer: C

Question 36 · No. 1508 · Single choice

A company needs to move some on-premises Oracle databases to AWS. The company has chosen to keep some of the databases on premises for business compliance reasons. The on-premises databases contain spatial data and run cron jobs for maintenance. The company needs to connect to the on-premises systems directly from AWS to query data as a foreign table. Which solution will meet these requirements?

Answer: D

Explanation: Option D is the best solution because it addresses all the requirements mentioned in the review text: moving Oracle databases to AWS, supporting spatial data, running cron jobs for maintenance, and connecting directly from AWS to on-premises systems for querying data as a foreign table. Amazon RDS for PostgreSQL with native spatial data support fulfills the spatial data requirement. The AWS Schema Conversion Tool (AWS SCT) and AWS Database Migration Service (AWS DMS) help in migrating the data from on-premises Oracle to the PostgreSQL instance. Cron jobs can be run directly on the RDS instance for maintenance tasks. AWS Direct Connect ensures a direct connection between the DB instance and the on-premises environment for foreign table access.
Question 37 · No. 1509 · Single choice

A company has an application that uses Amazon EC2 instances in an Auto Scaling group. The quality assurance (QA) department needs to launch a large number of short-lived environments to test the application. The application environments are currently launched by the manager of the department using an AWS CloudFormation template. To launch the stack, the manager uses a role with permission to use CloudFormation, EC2, and Auto Scaling APIs. The manager wants to allow testers to launch their own environments, but does not want to grant broad permissions to each user. Which set up would achieve these goals?

Answer: B

Explanation: Option B is the best solution because it allows for creating an AWS Service Catalog product from the environment template, enabling granular control over access and permissions. By adding a launch constraint with the existing role, you can restrict the permissions without granting broad access to individual users. Giving QA department users permission to use AWS Service Catalog APIs only ensures they can launch the needed environments through the Service Catalog console, which is more controlled and streamlined than direct CloudFormation or Elastic Beanstalk interactions.
Question 38 · No. 1510 · Single choice

An entertainment company hosts a ticketing service on a fleet of Linux Amazon EC2 instances that are in an Auto Scaling group. The ticketing service uses a pricing file. The pricing file is stored in an Amazon S3 bucket that has S3 Standard storage. A central pricing solution that is hosted by a third party updates the pricing file. The pricing file is updated every 1-15 minutes and has several thousand line items. The pricing file is downloaded to each EC2 instance when the instance launches. The EC2 instances occasionally use outdated pricing information that can result in incorrect charges for customers. Which solution will resolve this problem MOST cost-effectively?

Answer: A

Question 39 · No. 1511 · Single choice

A large education company recently introduced Amazon Workspaces to provide access to internal applications across multiple universities. The company is storing user profiles on an Amazon FSx for Windows File Server file system. The file system is configured with a DNS alias and is connected to a self-managed Active Directory. As more users begin to use the Workspaces, login time increases to unacceptable levels. An investigation reveals a degradation in performance of the file system. The company created the file system on HDD storage with a throughput of 16 MBps. A solutions architect must improve the performance of the file system during a defined maintenance window. What should the solutions architect do to meet these requirements with the LEAST administrative effort?

Answer: B

Question 40 · No. 1512 · Single choice

A company’s public API runs as tasks on Amazon Elastic Container Service (Amazon ECS). The tasks run on AWS Fargate behind an Application Load Balancer (ALB) and are configured with Service Auto Scaling for the tasks based on CPU utilization. This service has been running well for several months. Recently, API performance slowed down and made the application unusable. The company discovered that a significant number of SQL injection attacks had occurred against the API and that the API service had scaled to its maximum amount. A solutions architect needs to implement a solution that prevents SQL injection attacks from reaching the ECS API service. The solution must allow legitimate traffic through and must maximize operational efficiency. Which solution meets these requirements?

Answer: C

Explanation: AWS WAF web ACL with a new rule that blocks requests that match the SQL database rule group is the most suitable option. This will prevent SQL injection attacks from reaching the ECS API service, and allow all other traffic that doesn’t match those rules to continue. Attaching the web ACL to the ALB in front of the ECS tasks is a crucial step for ensuring the traffic to your application is controlled as you want.
Prev 12345 Next