07_StructureApps Flashcards

1
Q

Where does the config.yaml file go?

A

src/main/resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What can’t have their own error handling strategy?

A

subflows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are flows calles that do not have event sources?

A

Private Flows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are subflows executed?

A

As if the processors were still in the calling flow. (Basically as if the processors are in the flow, so it goes in at the start and comes out at the end, they are called via flow reference).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are subflows called?

A

Flow reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of the Flow Reference component?

A

To pass events to other flows and subflows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Variables persist through all flows unless … ?

A

the event crosses a transport boundary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When using Flow Reference are events passed asynchronously or synchronously?

A

Synchronously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What connector can you use to pass events asychnronoulsy between flows?

A

VM Connector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What 2 things can queues be?

A

Transient and Persistent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain transient queues?

A

They are faster than persistent queues, but are lost in the case of a system crash.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Explain persistent queues?

A

Slower but reliable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why do we want to separate apps into multiple configuration files?

A

Monolithic files are difficult to read and maintain. It’ll be easier to read/work with/test and again, more maintainable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How should you refer to global elements?

A

Put them all in one config file, so that all the other files reference them and if a gloval element is specific to and only used in one file then it makes sense to keep it in that file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A global element is specific to and only used in file A. Should it be kept in that file or in the global config file?

A

The file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Do you want all your flows to be in 1 application/project?

A

No.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How should you handle all your flows

A

Seperate functionality into multiple applications to allow managing and monitoring of them as separate entities. USe different, incomparible JAR files.

18
Q

How do you run more than one application at a time in Anypoint Studio?

A

creating a run configuration

19
Q

How do you share global elements between applications?

A

A domain project can be used to share global configuration elements between applications.

20
Q

How does having a domain project benefit you?

A

You are able to share global elements between applications, which ensures consitency as any changes are alll set in one place, it can expose multiple services within the domain on the same port, share the connection to persistent storage and call flows in other applications using the VM connector.

21
Q

Who is the domain project available for?

A

customer-hosted Mule runtimes ( not on CloudHub)

22
Q

What is the process to share global elements between applications?

A
  1. Create a Mule Domain Project and associate Mule applications with a domain. 2. Add global element configurations to the domain project
23
Q

Where (do I think based on a MS screenshot) should the config file for global elements go?

A

src/main/mule

24
Q

What do application properties provide?

A

An easier way to manage connector properties, credentials and other configurations. Replace static values.

25
Q

Where are the application properties defined?

A

In a config file (either .yaml file or a .properties file)

26
Q

Can application properties be overridden?

A

Yes - by the system properties when deploying to different environments.

27
Q

What folder should the application properties file be kept in?

A

src/main/resources folder.

28
Q

What 2 places can you access the application properties that you deifned in the config.yaml file (and created a config properties global element for)?

A

Global element configurations and evetn processors. Or DataWeave expressions.

29
Q

How do you use the application properties (DataWeave expressions)

A

{port: p(‘db.port’)}

30
Q

How do you use the application properties (In global element configurations and event processors)

A

${db.port}

31
Q

What do you use to override property values when deploying an application to a different environment (like dev, qa, production).

A

system properties

32
Q

Where do you set the system properties?

A
Anypoint Studio 
(Run > Run Configurations > Arguments)
33
Q

What should the src/test folders contain?

A

Only files that are needed at development time. As they are not included in the application JAR when it is packaged.

34
Q

What does POM stand for?

A

Project Object Model

35
Q

What is the tool that is used for building and managing any Java-based project?

A

Maven.

36
Q

How does maven manage a projec’ts build, reporitng and documentation?

A

POM (Project Object Model) - A central piece of information

37
Q

What does a Maven build produce one or more of?

A

Artifacts (like a compiled JAR file) - each artifact has a group ID, artifact ID and a version string

38
Q

What is a POM?

A

An XML file that contains information about the project and configuration details used by Maven to build the project.

39
Q

What’s included in a POM?

A

Project info like it’s versions, descriptions, developers and more. Project dependencies. The plugins or goals that can be executed.

40
Q

How can you access the Metadata editor?

A
  • Transform Message componenet
  • Metadata tab in properties view for most processors
  • project’s menu in Package Explorer
41
Q

Where is the application metadata stored? (file and folder)

A

file: application-types.xml
folder: src/main/resources