aws-sap02 Flashcards
(6 cards)
A developer is configuring an application’s deployment environment in AWS CodePipeline. The application code is stored in a GitHub repository. The developer wants to ensure that the repository package’s unit tests run in the new deployment environment. The developer has already set the pipeline’s source provider to GitHub and has specified the repository and branch to use in the deployment. Which combination of steps should the developer take next to meet these requirements with the LEAST overhead? (Choose two.)
A. Create an AWS CodeCommit project. Add the repository package’s build and test commands to the project’s buildspec.
B. Create an AWS CodeBuild project. Add the repository package’s build and test commands to the project’s buildspec.
C. Create an AWS CodeDeploy project. Add the repository package’s build and test commands to the project’s buildspec.
D. Add an action to the source stage. Specify the newly created project as the action provider. Specify the build artifact as the action’s input artifact.
E. Add a new stage to the pipeline after the source stage. Add an action to the new stage. Specify the newly created project as the action provider. Specify the source artifact as the action’s input artifact.
lkjlkj
What
is the difference between the get and load methods in Hibernate?
In Hibernate, the get and load methods are used to retrieve objects from the database, but they have several key differences:
- Behavior when the object is not found:
get: Returns null if no object with the specified identifier is found.
load: Throws ObjectNotFoundException if no object with the specified identifier is found. This method assumes that the object exists in the database. - Return type:
get: Returns an object of the specified type or null if the object is not found.
load: Returns a proxy object that will be initialized upon first access. If no object with the specified identifier exists, an exception will be thrown. - Loading strategy:
get: Loads the object immediately from the database.
load: Loads the object lazily, meaning the actual loading of data occurs only when accessing the object’s properties.
lkjlkjl;kjlkj
l;kjlkjlkjlkj
l;kjl;kjl;kj
lkjlkjlkjlkj