DVA-C02 · Question #781
A software company is migrating a single-page application from on-premises servers to the AWS Cloud by using AWS Amplify Hosting. The application relies on an API that was created with an existing…
The correct answer is D. Create a new API by using the Amplify CLI's amplify add api command. Select GraphQL as the. Using the Amplify CLI to add a GraphQL API directly creates and configures an AWS AppSync API that natively uses the existing GraphQL schema. This approach is tightly integrated with AWS Amplify Hosting and requires minimal manual setup, making it the simplest way to migrate a…
Question
A software company is migrating a single-page application from on-premises servers to the AWS Cloud by using AWS Amplify Hosting. The application relies on an API that was created with an existing GraphQL schema. The company needs to migrate the API along with the application. Which solution will meet this requirement with the LEAST amount of configuration?
Options
- ACreate a new API by using the Amplify CLI's amplify Import api command. Select REST as the
- BCreate a new API in Amazon API Gateway by using the existing schema. Use the Amplify CLI's
- CCreate a new API in AWS AppSync by using the existing schema. Use the Amplify CLI's amplify
- DCreate a new API by using the Amplify CLI's amplify add api command. Select GraphQL as the
How the community answered
(33 responses)- A3% (1)
- B6% (2)
- C9% (3)
- D82% (27)
Explanation
Using the Amplify CLI to add a GraphQL API directly creates and configures an AWS AppSync API that natively uses the existing GraphQL schema. This approach is tightly integrated with AWS Amplify Hosting and requires minimal manual setup, making it the simplest way to migrate a schema-based GraphQL API alongside a single-page application.
Community Discussion
No community discussion yet for this question.